<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
    <link th:href="@{/css/common.css}" rel="stylesheet">
    <!-- 在 head 标签内添加 -->
    <style>
        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .login-card {
            max-width: 400px;
            padding: 2.5rem;
        }

        .login-header i {
            font-size: 4rem;
            background: linear-gradient(135deg, #6c5ce7 0%, #a363d9 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    </style>
</head>

<body>
    <div class="login-container">
        <div class="login-card card">
            <div class="login-header">
                <i class="bi bi-person-circle"></i>
                <h2 class="mt-3">用户登录</h2>
            </div>
            <form th:action="@{/doLogin}" method="post" id="loginForm">
                <div class="mb-4">
                    <label class="form-label">
                        <i class="bi bi-person me-2"></i>账号
                    </label>
                    <input type="text" class="form-control" name="account" required>
                </div>
                <div class="mb-4">
                    <label class="form-label">
                        <i class="bi bi-lock me-2"></i>密码
                    </label>
                    <input type="password" class="form-control" name="password" required>
                </div>
                <button type="submit" class="btn btn-primary w-100">
                    <i class="bi bi-box-arrow-in-right me-2"></i>登录
                </button>
            </form>
        </div>
    </div>
</body>

</html>